import {useRoutes} from 'react-router-dom'
import Home from '../views/Home'
import About from '../views/About'
const RouterView = () => {
  const routes = useRoutes([
    {
      path: "/",
      element: <Home/>
    }, {
      path: "/about",
      element: <About/>
    }
  ])
  return routes;
}
export default RouterView;